<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>企业员工管理系统</title>
  <script src="js/auth.js"></script>
  <script>
    // 检查用户是否已登录，重定向到相应页面
    window.onload = function() {
      if (isLoggedIn()) {
        // 已登录，跳转到仪表盘
        window.location.href = '/dashboard.html';
      } else {
        // 未登录，跳转到登录页
        window.location.href = '/login.html';
      }
    }
  </script>
  <style>
    body {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      margin: 0;
      background-color: #f8f9fc;
      font-family: 'Nunito', sans-serif;
    }
    .loader {
      border: 6px solid #f3f3f3;
      border-top: 6px solid #4e73df;
      border-radius: 50%;
      width: 50px;
      height: 50px;
      animation: spin 1s linear infinite;
      margin-bottom: 20px;
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    .container {
      text-align: center;
      color: #5a5c69;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="loader"></div>
    <h2>企业员工管理系统</h2>
    <p>正在加载，请稍候...</p>
  </div>
</body>
</html> 